/*
 *  Monster.cpp
 *  lab3
 *
 *  Created by Fredrik Gustafsson on 2010-11-24.
 *  Copyright 2010 KTH. All rights reserved.
 *
 */

#include "Monster.h"

using namespace wok2;
std::string Monster::type() const {
	return "monster";
}

void Monster::fight(Actor& enemy){
	int damage = gen_damage(20, 10);
	std::cout << name << " throws a puch!" << std::endl;
	usleep(1000000);
	std::cout << enemy.name <<" loses " << damage << " hp." << std::endl;
	usleep(1000000);
	enemy.health-=damage;
}